{if $intLs == 1}
	{if isset($row.tcmt) && ($row.tcmt > $smarty.const.COMMENT_LIMIT_TOP)}
		<div class="subItems"><a href="{fullhouse_ublast username=$objUser->username hex=$objUser->hex id=$row.ublastid}">Xem tất cả <strong>{$row.tcmt|number_format}</strong> bình luận</a></div>
   	{elseif isset($intTotalCmt) && ($intTotalCmt> $smarty.const.COMMENT_LIMIT_TOP)}
    	<div class="subItems"><a href="{fullhouse_ublast username=$objUser->username hex=$objUser->hex id=$id}">Xem tất cả <strong>{$intTotalCmt|number_format}</strong> bình luận</a></div>
    {/if}
{else}
    {if $intTotalCmt > $intLimit}
        <div class="subItems">
            {paging total=$intTotalCmt limit=$intLimit offset=$intOffset url=$strUrl div="subContent"}         
        </div>
    {/if}
{/if}
{if isset($row.slist) && $row.slist}	
    {foreach item=sitem from=$row.slist}
        <div class="subItems" {if $AppUI->id > 0 && $objUser->id > 0 && ($AppUI->id == $sitem.userid || $AppUI->id == $objUser->id)}onmouseover="javascript:onMouseOverForUbcomment({$sitem.ubcommentid});" onmouseout="javascript:onMouseOutForUbcomment({$sitem.ubcommentid});"{/if}>
        	{if $AppUI->id > 0 && ($AppUI->id == $sitem.userid || $AppUI->id == $row.posterid)}<div class="uBlastCmt" id="uBlastCmt{$sitem.ubcommentid}"><a href="javascript:;" onClick="javascript:deleteCmt({$row.ublastid},{$sitem.ubcommentid},1,{$intLs});">Xóa</a></div>{/if}
            {image userid=$sitem.userid viewid=$AppUI->id type=1 small=2 class="border30 lFloat"}
            <div class="scontent">
                <h5><a href="{vfriend_username userid=$sitem.userid viewid=$AppUI->id}">{$sitem.userid|ouser:"fullnamevn"}</a></h5>
                <ul>
                    <li class="firstChild"><span class="iTime">{$sitem.postdate|convert_date}</span></li>
                    <li><a href="javascript:;" onClick="javascript:likeCmt({$row.ublastid},{$sitem.ubcommentid},1);" class="sLike">Thích</a> (<strong id="uBlastCmtLike{$sitem.ubcommentid}">{$sitem.tlike|number_format}</strong>)</li>
                </ul>
                <p>{$sitem.content|str_emoticon}</p>
            </div>
        </div>
    {/foreach}
{elseif isset($arrComment) && $arrComment}
	{foreach item=sitem from=$arrComment}
        <div class="subItems" {if $AppUI->id > 0 && $AppUI->id == $sitem.userid}onmouseover="javascript:onMouseOverForUbcomment({$sitem.ubcommentid});" onmouseout="javascript:onMouseOutForUbcomment({$sitem.ubcommentid});"{/if}>
        	{if $AppUI->id > 0 && ($AppUI->id == $sitem.userid)}<div class="uBlastCmt" id="uBlastCmt{$sitem.ubcommentid}"><a href="javascript:;" onClick="javascript:deleteCmt({if isset($row.ublastid) && $row.ublastid>0}{$row.ublastid}{else}{$id}{/if},{$sitem.ubcommentid},{if isset($intPage)}{$intPage}{else}1{/if},{$intLs});">Xóa</a></div>{/if}
            {image userid=$sitem.userid viewid=$AppUI->id type=1 small=2 class="border30 lFloat"}
            <div class="scontent">
                <h5><a href="{vfriend_username userid=$sitem.userid viewid=$AppUI->id}">{$sitem.userid|ouser:"fullnamevn"}</a></h5>
                <ul>
                    <li class="firstChild"><span class="iTime">{$sitem.postdate|convert_date}</span></li>
                    <li><a href="javascript:;" onClick="javascript:likeCmt({if isset($row.ublastid) && $row.ublastid>0}{$row.ublastid}{else}{$id}{/if},{$sitem.ubcommentid},{if isset($intPage)}{$intPage}{else}1{/if});" class="sLike">Thích</a> (<strong>{$sitem.tlike|number_format}</strong>)</li>
                </ul>
                <p>{$sitem.content|str_emoticon}</p>
            </div>
        </div>
    {/foreach}
    {if $intTotalCmt > $intLimit && $arrComment|@count > 5}
		<div class="subItems">
        	{paging total=$intTotalCmt limit=$intLimit offset=$intOffset url=$strUrl div="subContent"}         
    	</div>
    {/if}
{else}&nbsp;{/if}
